package com.suixun.dao.sendmessagemanage;

import java.util.List;
import java.util.Map;

import com.suixun.entity.SendMessageInfo;
import com.suixun.entity.page.PageModel;

public interface SendMessageManageDAO {
	/**
	 * 
	 * <p>Title: queryByPaging</p>
	 * <p> 功能描述:查询已推送的消息(分页) </p>
	 * @return
	 */
	List<SendMessageInfo> queryByPaging(PageModel<?> pageModel);
	/**
	 * 
	 * <p>Title: countRows</p>
	 * <p> 功能描述:查询消息推送行数 </p>
	 * @return
	 */
	Integer countRows(PageModel<?> pageModel);
	
	/**
	 * 
	 * <p>Title: addSendMessage</p>
	 * <p> 功能描述:添加消息推送 </p>
	 * @param sendMessage
	 * @return
	 */
	int addSendMessage(SendMessageInfo sendMessage);
	
	/**
	 * 添加消息推送（新) wufeluli
	 */
	int sendMessage(SendMessageInfo sendMessage);
	
	/**
	 * 
	 * <p>Title: querySendMessageById</p>
	 * <p> 功能描述:通过id查询推送消息 </p>
	 * @param messageid
	 * @return
	 */
	SendMessageInfo querySendMessageById(Integer messageid);
	/**
	 * 
	 * <p>Title: updateSendMessage</p>
	 * <p> 功能描述:修改消息推送表 </p>
	 * @param map
	 * @return
	 */
	int updateSendMessage(Map<String,Object> map);
	
	/**
	 * 
	 * <p>Title: deleteSendMessage</p>
	 * <p> 功能描述:删除指定推送消息 </p>
	 * @param messageid
	 * @return
	 */
	int deleteSendMessage(Integer messageid);
	/**
	 * 
	 * <p>Title: queryAllTel</p>
	 * <p> 功能描述:查询所有家长手机号 </p>
	 * @return
	 */
	List<String> queryAllParentsTel();
}
